# NOT RUN {
m <- as.Distribution(
t(apply(matrix(runif(200), 20, 10, FALSE,
list(NULL, sort(sample(1:20, 10)))), 1,
function(x) x / sum(x))),
fun = "pdf"
)
m[1]
m[1:2]
# }
Run the code above in your browser using DataLab